package org.timemachine.generator.spi;

import java.io.IOException;

import javassist.CannotCompileException;
import javassist.CtClass;
import javassist.CtField;
import javassist.NotFoundException;

import javax.persistence.JoinTable;

public interface AnnoChecker {
	
	public void checkIdAnnotation(CtClass cc, CtField ctField) throws ClassNotFoundException, NotFoundException, CannotCompileException;	
	public void checkOneToManyAnnotation(CtClass cc, CtField ctField) throws ClassNotFoundException, NotFoundException;
	public void checkOneToOneAnnotation(CtClass cc, CtField ctField) throws ClassNotFoundException, NotFoundException, CannotCompileException;
	public JoinTable checkManyToManyAnnotation(CtClass cc, CtField ctField) throws ClassNotFoundException, NotFoundException, CannotCompileException, IOException;
	
}
